Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: zero filler #3465

Merged

Conversation

acpana
Copy link
Collaborator

@acpana acpana commented Jan 8, 2025

Adding a zero filler (similar to the random filler) to the KRMgen. We will use this in tooling to create tests for set 0 scenarios.

@acpana acpana requested a review from justinsb January 8, 2025 20:16
@acpana acpana force-pushed the acpana/zero-filler branch from ea7bb25 to e2efda2 Compare January 8, 2025 20:54
Signed-off-by: Alex Pana <[email protected]>
@acpana acpana force-pushed the acpana/zero-filler branch from e2efda2 to 9538d03 Compare January 9, 2025 18:15
@acpana acpana requested a review from yuwenma January 14, 2025 23:39
Copy link
Collaborator

@jingyih jingyih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Had one question but not a blocker for now.


case reflect.Slice: // undefined for now

// count := rf.randStream.Intn(10) + 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we silently skip slice and map fields, or should we explicitly fail? Alternatively, could we create empty slices and maps to use as the "zero value"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can revisit this decision but I think ignoring more complex types for now is okay. As I wire this into the dev/ generation tools we will iterate here.

@google-oss-prow google-oss-prow bot added the lgtm label Jan 16, 2025
Copy link
Collaborator

@yuwenma yuwenma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 1f51004 into GoogleCloudPlatform:master Jan 16, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants